
export class Ext{

    /**
     * 
     * @param {Object} obj 
     * @param {(obj:Object)=>any} _default 
     * @returns {any}
     */
    static get(obj, _default){
        const name = "_"+this.name;
        if(obj[name] !== undefined){
            return obj[name];
        }
        return obj[name] = _default(obj);
    }
}